package xin.mashibo.artcobutest.vo;

import android.os.Parcel;
import android.os.Parcelable;

import com.artc.development.myble.sdk.CardOwner;

/**
 * @author MaShibo
 *         on 2018/3/26
 */
public class CardOwnerExtend extends CardOwner implements Parcelable {

    public CardOwnerExtend() {
    }

    public CardOwnerExtend(CardOwner cardOwner) {
        ownerId = cardOwner.ownerId;
        staffId = cardOwner.staffId;
        ownerName = cardOwner.ownerName;
        ownerLicenseNumber = cardOwner.ownerLicenseNumber;
        ownerLicenseType = cardOwner.ownerLicenseType;
    }

    protected CardOwnerExtend(Parcel in) {
        ownerId = in.readString();
        staffId = in.readString();
        ownerName = in.readString();
        ownerLicenseNumber = in.readString();
        ownerLicenseType = in.readString();
    }

    public static final Creator<CardOwnerExtend> CREATOR = new Creator<CardOwnerExtend>() {
        @Override
        public CardOwnerExtend createFromParcel(Parcel in) {
            return new CardOwnerExtend(in);
        }

        @Override
        public CardOwnerExtend[] newArray(int size) {
            return new CardOwnerExtend[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(ownerId);
        dest.writeString(staffId);
        dest.writeString(ownerName);
        dest.writeString(ownerLicenseNumber);
        dest.writeString(ownerLicenseType);
    }
}
